package com.jiang.advice;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.jiang.advice
 * @Description:
 * @Date 2022/6/6 11:19
 */


import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 环绕通知
 */
public class MyAroundAdvice implements MethodInterceptor {
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("=======环绕1=");
        Object proceed = methodInvocation.proceed();
        System.out.println("=======环绕1=");
        return proceed;
    }
}
